package com.ibeeking.found.common.config.feign;

import com.ibeeking.found.common.config.feign.fallback.FileClientFallbackFactory;
import com.ibeeking.found.common.entity.OssPropDTO;
import com.ibeeking.nematos.utils.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author ibeeking
 */
@FeignClient(name = "base-file-b-server", contextId = "fileClient", path = "/b", fallbackFactory = FileClientFallbackFactory.class, decode404 = true)
public interface FileClient {
    /**
     * 获取oss配置项
     *
     * @return
     */
    @GetMapping(value = "/file/feign/v1/ossProp")
    ResponseResult<OssPropDTO> ossProp();
}
